<?php

use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Auth;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Auth::routes([
    'register' => false,
    'reset' => false,
]);

Route::middleware('auth')->group(function () {
    Route::post('tim', 'TimController@init')->name('tim');
    Route::post('tim/sign', 'TimController@sign')->name('tim.sign');

    Route::get('home', 'HomeController@index')->name('home');
    Route::get('home/customers', 'HomeController@customers')->name('home.customers');
    Route::get('home/users', 'HomeController@users')->name('home.users');
});
